package shopping.feign.call.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

public class ShoppingAuthRequestInterceptor implements RequestInterceptor {
  
  private final String tk;
  
  public ShoppingAuthRequestInterceptor(String tk) {
    this.tk = tk;
  }
  
  @Override
  public void apply(RequestTemplate requestTemplate) {
    requestTemplate.header("Authorization", this.tk);
  }
}
